
export const settingAIFunction = () => {
    const { setDark } = settingsStore()
    const checkDark: AIFunctionItem = {
        tool: {
            function: {
                name: 'checkDark',
                description: '切换暗色模式状态',
                parameters: {
                    type: 'object',
                    properties: {
                        dark: {
                            type: 'boolean',
                            description: '是否开启暗色模式'
                        }
                    },
                    required: [],
                    additionalProperties: false
                },
            },
            type: 'function'
        },
        fn: ({ dark }: { dark: boolean }) => {
            setDark(dark)
        }
    }
    return { checkDark }
}